﻿using System;
using System.Linq;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Unity;
using Mipic.Infrastructure.Services;
using Mipic.Moduls.Filters.Services;

namespace Mipic.Moduls.Filters
{
    public class FilterModule : IModule
    {
        
        #region //--------- Private Fields --------------//

        private readonly IUnityContainer _container;
        
        #endregion   

        #region //--------- Public Constructors ---------//
        
        public FilterModule(IUnityContainer container)
        {
            _container = container;
        }
        
        #endregion

        #region //--------- Interface Members -----------//
        
        public void Initialize()
        {
            _container.RegisterType<IFilterService, FilterService>();
        }

        #endregion

    }
}